<?php

namespace Common\Models\Videos;

use Phalcon\Mvc\Model;
use Phalcon\Mvc\Model\Validator\Uniqueness;

class VideoCategoryLink extends Model
{
    protected $video_id;

    protected $category_id;

    protected $position;
 

    public function getSource()
    {
        return 'video_category_link';
    }

    public function initialize()
    {
        $this->setSource('video_category_link');
    }

    /**
     * @return User
     */
    public static function findFirstById($parameters = array())
    {
        return parent::findFirstById($parameters);
    }
    function getVideoId() {
        return $this->vide_id;
    }

    function getCategoryId() {
        return $this->category_id;
    }

    function getPosition() {
        return $this->position;
    }

    function setVide_id($vide_id) {
        $this->vide_id = $vide_id;
        return $this;
    }

    function setCategoryId($category_id) {
        $this->category_id = $category_id;
        return $this;
    }

    function setPosition($position) {
        $this->position = $position;
        return $this;
    }
    
}
